<template>
  <!-- 发布车品 - 选择分类 -->
	<view class="u-wrap">
		<view class="headrtitle">
			<view class="hetext flex">
        <i-icon icon="iconzhuyi" type="multiple" size="34rpx"></i-icon>
				<text>仅支持发布养护标准用品，配件类货源商 通过报价直接参与买卖</text>
			</view>
		</view>
		<view class="u-menu-wrap">
			<scroll-view scroll-y scroll-with-animation class="u-tab-view menu-scroll-view">
				<view v-for="(item,index) in list" :key="index" :class="['u-tab-item', currentNum == index ? 'active' : '']" @tap.stop="setId(index)">
					<view class="u-tab-item-text" :id="'to' + index">
						<text class="u-line-1">{{item.name}}</text>
					</view>
				</view>
			</scroll-view>
			<scroll-view :scroll-into-view="clickId" @scroll="scroll" :scroll-with-animation="true" :scroll-y="true">
				<view class="page-view">
					<view class="class-item" :id="'po' + index" v-for="(item , index) in list" :key="index">
						<view class="item-title flex flex-jc-c flex-ai-c">
							<view class="xiant"></view>
							<view class="xtname">{{item.name}}</view>
							<view class="xiant"></view>
						</view>
						<view class="item-container">
							<view class="thumb-box" v-for="(item1, index1) in item.list" :key="index1" @click="bussclick(item, item1)">
								<image class="item-menu-image" :src="item1.picture_Path" mode="aspectFit"></image>
								<view class="item-menu-name">{{item1.name}}</view>
							</view>
						</view>
					</view>
				</view>
			</scroll-view>
		</view>
	</view>
</template>


<script src="./selectTheCategory.js"></script>
<style lang="scss" scoped>
	@import './selectTheCategory.scss';
</style>
